package com.yxx.entityModel.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.security.cert.TrustAnchor;

/**
 * 邮箱Request
 * @author yuxiangxun
 * @date 2025/1/26
 * @apiNote
 */
@Data
@ApiModel(description = "邮箱Request")
public class EmailRequest {

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱",required = true)
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String code;
}
